package web;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;

@ManagedBean
@RequestScoped
public class EndSessionManagedBean {

    public EndSessionManagedBean() {
    }
    
    public String disconect(){
        
        FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
        return "ENDSESSION";
    }
}
